#include "ir_sw.h"

uint8_t mode = 0;
uint32_t ir_trigger_count = 0;

void ir_trigger(void)
{
	static uint8_t save_flag = 0;
	if(mode != IR_COUNT)
		return;
	ir_trigger_count++;
	save_flag++;
	if(save_flag > 10)
	{
		save_flag = 0;
		LOG_INFO("scve trigger_count %d\r\n",ir_trigger_count);
	}
}

void ir_sw_set_mode(IR_IN_MODE _mode)
{
	mode = _mode;
}

void ir_sw_init(void)
{

}

void ir_sw_deinit(void)
{

}